from selenium import webdriver
import time
import os

driver = webdriver.Chrome()
url = "file:///" + os.path.abspath("C:/课件/我的课件/测试/selenium2/locateElement/selenium2html/drop_down.html")
driver.get(url)
driver.maximize_window()
time.sleep(6)
# xpath
# driver.find_element_by_xpath("//*[@id='ShippingMethod']/option[3]").click()
options = driver.find_elements_by_tag_name("option")
# for option in options:
#     if option.get_attribute('value') == '10.69':
#         option.click()
options[2].click()
time.sleep(6)
driver.quit()